<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login - Extreme CMS</title>
<link rel="stylesheet" href="css/style.css" type="text / css">
</head>
<body>
<div class = "wideBox">
<h1><?php echo SYSTEM_NAME; ?></h1>
<p><?php echo ACTUAL_VERSION_INFO; ?> <a href="http://extreme-programming-group.com"><?php echo ACTUAL_VERSION_LINK;?></a></p>
</div>
<div id = "container">
<div class="adminHeader">
<h2><?php echo WELCOME_MESSAGE; ?></h2>
<?php if($_SESSION['users_access_level'] > 0){?>
<p><?php echo USER_INFO_MESSAGE; ?> <strong><?php echo $_SESSION['users_username'];?></strong>. <?php echo LOGGED_MESSAGE;?> <a href="<?php echo SERVER_ROOT;?>?login&page=logout"><?php echo LOG_OUT;?></a></p>
<?php } ?>
<p>
<?php
if($_SESSION['users_access_level'] > 0){ 
?>
<a href="<?php echo SERVER_ROOT;?>?manageaccount"><?php echo MANAGE_ACCOUNT;?></a>
<?php 
}
if($_SESSION['users_access_level'] > 4){
?>
 | <a href="<?php echo SERVER_ROOT;?>?managearticles"><?php echo MANAGE_ARTICLE;?></a> | <a href="<?php echo SERVER_ROOT;?>?managecategory"><?php echo MANAGE_CATEGORIES;?></a>  | <a href="<?php echo SERVER_ROOT;?>?managesoftware"><?php echo MANAGE_SOFTWARE;?></a> | <a href="<?php echo SERVER_ROOT;?>?manageservices"><?php echo MANAGE_SERVICES;?></a>
 <?php 
}
if($_SESSION['users_access_level'] > 5){
?>
 | <a href="<?php echo SERVER_ROOT;?>?useradmin"><?php echo MANAGE_USERS;?></a> | <a href="<?php echo SERVER_ROOT;?>?logger"><?php echo MANAGE_LOGS;?></a>
<?php 
}
?>
</p>
</div>